home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- if the platform = "Windows,32" then
- openXLib(the pathName & "XTRAS32\Fileio")
- openXLib(the pathName & "XTRAS32\FileXtra")
- else
- if the platform = "Windows,16" then
- openXLib(the pathName & "XTRAS16\Fileio")
- openXLib(the pathName & "XTRAS16\FileXtra")
- else
- openXLib(the pathName & "xtras:FileIOXtraFat")
- end if
- end if
- loadBrowser()
- getPrefThingy()
- loadBrowser()
- set the visible of sprite 11 to 0
- set the visible of sprite 12 to 0
- set the visible of sprite 13 to 0
- set the visible of sprite 14 to 0
- set the visible of sprite 15 to 0
- set the visible of sprite 16 to 0
- set the visible of sprite 17 to 0
- set the visible of sprite 18 to 0
- set the visible of sprite 19 to 0
- set the visible of sprite 20 to 0
- set the visible of sprite 21 to 0
- set the visible of sprite 22 to 0
- set the visible of sprite 23 to 0
- set the visible of sprite 40 to 0
- set the visible of sprite 41 to 0
- set the visible of sprite 42 to 0
- set the visible of sprite 43 to 0
- end
-
- on keyDown
- if the key = "" then
- nothing()
- dontPassEvent()
- end if
- end
-
- on loadBrowser
- global myFile
- set gOSDir to getOSDirectory()
- put gOSDir & "\" into field "OSPath"
- put gOSDir & "\BROWSER.TXT" into field "ThePath"
- set DaPath to field "ThePath"
- if objectp(myFile) then
- set myFile to 0
- end if
- set myFile to new(xtra("fileio"))
- openFile(myFile, DaPath, 1)
- set TheWeb to readLine(myFile)
- put TheWeb into field "browserSelect"
- closeFile(myFile)
- set myFile to 0
- end
-
- on TrackClick
- set spriteNum to the clickOn
- set offCast to the castNum of sprite spriteNum
- set onCast to offCast + 1
- set the castNum of sprite spriteNum to onCast
- updateStage()
- repeat while the mouseDown
- if rollOver(spriteNum) then
- set the castNum of sprite spriteNum to onCast
- else
- set the castNum of sprite spriteNum to offCast
- end if
- updateStage()
- end repeat
- set the castNum of sprite spriteNum to offCast
- updateStage()
- return rollOver(spriteNum)
- end
-